package com.dianpingmedia.simulate.model;

import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;

import java.util.List;
import java.util.Map;

public class IFlySyncAdunitEntity {

    public static class Request{
        @NotBlank(message = "ssp_id can't be empty")
        private String ssp_id;
        @NotBlank(message = "time can't be empty")
        private String time;
        @NotBlank(message = "token can't be empty")
        private String token;
        @NotBlank(message = "sign can't be empty")
        private String sign;
        @NotEmpty(message = "medias can't be empty")
        private List<Adunit> adunits;

        public String getSsp_id() {
            return ssp_id;
        }

        public void setSsp_id(String ssp_id) {
            this.ssp_id = ssp_id;
        }

        public String getTime() {
            return time;
        }

        public void setTime(String time) {
            this.time = time;
        }

        public String getToken() {
            return token;
        }

        public void setToken(String token) {
            this.token = token;
        }

        public String getSign() {
            return sign;
        }

        public void setSign(String sign) {
            this.sign = sign;
        }

        public List<Adunit> getAdunits() {
            return adunits;
        }

        public void setAdunits(List<Adunit> adunits) {
            this.adunits = adunits;
        }

        public static class Adunit{
            private String adunit_name;
            private Integer show_type;
            private Integer play_time;
            private Integer ad_income_type;
            private Float screen_size;
            private String adunit_size;
            private Integer width;
            private Integer height;
            private Double price;
            private Integer max_pic_size;
            private Integer max_video_size;
            private String pic_style;
            private String video_style;
            private Integer display_type;
            private Integer show_way;
            private Integer play_number;
            private String trigger_condition_desc;


            public Integer getShow_type() {
                return show_type;
            }

            public void setShow_type(Integer show_type) {
                this.show_type = show_type;
            }

            public Integer getPlay_time() {
                return play_time;
            }

            public void setPlay_time(Integer play_time) {
                this.play_time = play_time;
            }

            public Float getScreen_size() {
                return screen_size;
            }

            public void setScreen_size(Float screen_size) {
                this.screen_size = screen_size;
            }

            public String getAdunit_size() {
                return adunit_size;
            }

            public void setAdunit_size(String adunit_size) {
                this.adunit_size = adunit_size;
            }

            public Integer getDisplay_type() {
                return display_type;
            }

            public void setDisplay_type(Integer display_type) {
                this.display_type = display_type;
            }

            public Integer getShow_way() {
                return show_way;
            }

            public void setShow_way(Integer show_way) {
                this.show_way = show_way;
            }

            public Integer getPlay_number() {
                return play_number;
            }

            public void setPlay_number(Integer play_number) {
                this.play_number = play_number;
            }

            public String getTrigger_condition_desc() {
                return trigger_condition_desc;
            }

            public void setTrigger_condition_desc(String trigger_condition_desc) {
                this.trigger_condition_desc = trigger_condition_desc;
            }

            public String getAdunit_name() {
                return adunit_name;
            }

            public void setAdunit_name(String adunit_name) {
                this.adunit_name = adunit_name;
            }




            public Integer getAd_income_type() {
                return ad_income_type;
            }

            public void setAd_income_type(Integer ad_income_type) {
                this.ad_income_type = ad_income_type;
            }


            public Integer getWidth() {
                return width;
            }

            public void setWidth(Integer width) {
                this.width = width;
            }

            public Integer getHeight() {
                return height;
            }

            public void setHeight(Integer height) {
                this.height = height;
            }

            public Double getPrice() {
                return price;
            }

            public void setPrice(Double price) {
                this.price = price;
            }

            public Integer getMax_pic_size() {
                return max_pic_size;
            }

            public void setMax_pic_size(Integer max_pic_size) {
                this.max_pic_size = max_pic_size;
            }

            public Integer getMax_video_size() {
                return max_video_size;
            }

            public void setMax_video_size(Integer max_video_size) {
                this.max_video_size = max_video_size;
            }

            public String getPic_style() {
                return pic_style;
            }

            public void setPic_style(String pic_style) {
                this.pic_style = pic_style;
            }

            public String getVideo_style() {
                return video_style;
            }

            public void setVideo_style(String video_style) {
                this.video_style = video_style;
            }


        }
    }

    public static class Response{
        private Integer return_code;
        private Object message;

        public Integer getReturn_code() {
            return return_code;
        }

        public void setReturn_code(Integer return_code) {
            this.return_code = return_code;
        }

        public Object getMessage() {
            return message;
        }

        public void setMessage(Object message) {
            this.message = message;
        }
    }


}
